﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace hCommand
{
    public class CyUtil
    {
       public static  String getName(DateTime n) {
            String name = "z" + (n.Year * 10000 + n.Month * 100 + n.Day);
            return name;
        }

       public static List<String > getNames(DateTime b  ,DateTime e) {
            if (b.Ticks > e.Ticks) {
                var t = b;
                b = e;
                e = t;
            }
            String etable = getName(e);
            List<String> list = new List<String>();

            String table = getName(b);
            while (table != etable) {
                list.Add(table);
                b = b.AddDays(1);
                table = getName(b);
            }
            list.Add(table);



            return list;
        }

    }
}
